package com.itheima.client;

import com.itheima.client.hystrix.NacosClientHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "nacos-client-feign", fallback = NacosClientHystrix.class)
public interface NacosClientFeign {
    
    @GetMapping(value = "/stock")
    String getStock(@RequestParam(value = "name") String name);
    
}
